<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>单选按钮的使用</title>
</head>
<body>
<form action="http://localhost">
  <div>
    性别：
    <input type="radio" name="gender" id="man" value="男" required><label for="man">男</label>
    <input type="radio" name="gender" id="woman" value="女"><label for="man">女</label>
  </div>
  <input type="submit" value="提交">

</form>
</body>
</html>